<?xml version="1.0" encoding="UTF-8"?>
<html filename="docs/BSAXExt/IBufferedAttributes2.html">
<body>
<a id="#top"/>
<h1>
	                Interface Summary : IBufferedAttributes2 </h1> SAX2 extension to augment the per-attribute information
 provided though <a href="../BSAX/IBufferedAttributes.html">IBufferedAttributes</a>.
 If an implementation supports this extension, the attributes
 provided in <a href="../BSAX/IBufferedContentHandler.html#startElement">IBufferedContentHandler.startElement</a>
 will implement this interface,
 and the <em>http://xml.org/sax/features/use-attributes2</em>
 feature flag will have the value <em>true</em>.

 <blockquote>
 <em>This module, both source code and documentation, is in the
 Public Domain, and comes with <strong>NO WARRANTY</strong>.</em>
 </blockquote>

 <p> XMLReader implementations are not required to support this
 information, and it is not part of core-only SAX2 distributions.</p>

 <p>Note that if an attribute was defaulted (<em>not isSpecified()</em>)
 it will of necessity also have been declared (<em>isDeclared()</em>)
 in the DTD.
 Similarly if an attribute's type is anything except CDATA, then it
 must have been declared.
 </p>

<br/><b>Since : </b> SAX 2.0 (extensions 1.1 alpha)
<h2>
	              Methods
	            </h2>
<div style="padding-left:10px">
<a href="#isDeclared">
	                  function
	                 isDeclared(Integer) : Boolean</a>
<br/>
<a href="#isDeclared">
	                  function
	                 isDeclared(PSAXChar, Integer) : Boolean</a>
<br/>
<a href="#isDeclared">
	                  function
	                 isDeclared(PSAXChar, Integer, PSAXChar, Integer) : Boolean</a>
<br/>
<a href="#isSpecified">
	                  function
	                 isSpecified(Integer) : Boolean</a>
<br/>
<a href="#isSpecified">
	                  function
	                 isSpecified(PSAXChar, Integer, PSAXChar, Integer) : Boolean</a>
<br/>
<a href="#isSpecified">
	                  function
	                 isSpecified(PSAXChar, Integer) : Boolean</a>
<br/>
</div>
<br/>
<hr width="100%"/>
<a name="#isDeclared">
<p>
<b>function</b> isDeclared( index : Integer) : Boolean; </p>
</a> Returns false unless the attribute was declared in the DTD.
 This helps distinguish two kinds of attributes that SAX reports
 as CDATA:  ones that were declared (and hence are usually valid),
 and those that were not (and which are never valid).

<br/><b>Parameter : </b> index The attribute index (zero-based).
<br/><b>Result : </b> true if the attribute was declared in the DTD,
          false otherwise.
<br/><b>Exception : </b> Exception When the
            supplied index does not identify an attribute.

<br/>
<p>
<a href="#top">Top</a>
</p>
<hr width="100%"/>
<a name="#isDeclared">
<p>
<b>function</b> isDeclared( qName : PSAXChar;  qNameLength : Integer) : Boolean; </p>
</a> Returns false unless the attribute was declared in the DTD.
 This helps distinguish two kinds of attributes that SAX reports
 as CDATA:  ones that were declared (and hence are usually valid),
 and those that were not (and which are never valid).

<br/><b>Parameter : </b> qName The XML 1.0 qualified name.
<br/><b>Parameter : </b> qNameLength The length of the uri buffer
   The value may be -1 which indicates that the buffer is
   null-terminated. If the value is 0 then the buffer may be nil.
<br/><b>Result : </b> true if the attribute was declared in the DTD,
          false otherwise.
<br/><b>Exception : </b> ESAXIllegalArgumentException When the
            supplied name does not identify an attribute.
<br/>
<p>
<a href="#top">Top</a>
</p>
<hr width="100%"/>
<a name="#isDeclared">
<p>
<b>function</b> isDeclared( uri : PSAXChar;  uriLength : Integer;  localName : PSAXChar;  localNameLength : Integer) : Boolean; </p>
</a> Returns false unless the attribute was declared in the DTD.
 This helps distinguish two kinds of attributes that SAX reports
 as CDATA:  ones that were declared (and hence are usually valid),
 and those that were not (and which are never valid).

 <p>Remember that since DTDs do not &quot;understand&quot; namespaces, the
 namespace URI associated with an attribute may not have come from
 the DTD.  The declaration will have applied to the attribute's
 <em>qName</em>.</p>

<br/><b>Parameter : </b> uri The Namespace URI, or the empty string if
        the name has no Namespace URI.
<br/><b>Parameter : </b> uriLength The length of the uri buffer
   The value may be -1 which indicates that the buffer is
   null-terminated. If the value is 0 then the buffer may be nil.
<br/><b>Parameter : </b> localName The attribute's local name.
<br/><b>Parameter : </b> localNameLength The length of the localName buffer
   The value may be -1 which indicates that the buffer is
   null-terminated. If the value is 0 then the buffer may be nil.
<br/><b>Result : </b> true if the attribute was declared in the DTD,
          false otherwise.
<br/><b>Exception : </b> ESAXIllegalArgumentException When the
            supplied names do not identify an attribute.
<br/>
<p>
<a href="#top">Top</a>
</p>
<hr width="100%"/>
<a name="#isSpecified">
<p>
<b>function</b> isSpecified( index : Integer) : Boolean; </p>
</a> Returns true unless the attribute value was provided
 by DTD defaulting.

<br/><b>Parameter : </b> index The attribute index (zero-based).
<br/><b>Result : </b> true if the value was found in the XML text,
    false if the value was provided by DTD defaulting.
<br/><b>Exception : </b> ESAXIllegalArgumentException When the
            supplied index does not identify an attribute.
<br/>
<p>
<a href="#top">Top</a>
</p>
<hr width="100%"/>
<a name="#isSpecified">
<p>
<b>function</b> isSpecified( uri : PSAXChar;  uriLength : Integer;  localName : PSAXChar;  localNameLength : Integer) : Boolean; </p>
</a> Returns true unless the attribute value was provided
 by DTD defaulting.

 <p>Remember that since DTDs do not &quot;understand&quot; namespaces, the
 namespace URI associated with an attribute may not have come from
 the DTD.  The declaration will have applied to the attribute's
 <em>qName</em>.</p>

<br/><b>Parameter : </b> uri The Namespace URI, or the empty string if
        the name has no Namespace URI.
<br/><b>Parameter : </b> uriLength The length of the uri buffer
   The value may be -1 which indicates that the buffer is
   null-terminated. If the value is 0 then the buffer may be nil.
<br/><b>Parameter : </b> localName The attribute's local name.
<br/><b>Parameter : </b> localNameLength The length of the localName buffer
   The value may be -1 which indicates that the buffer is
   null-terminated. If the value is 0 then the buffer may be nil.
<br/><b>Result : </b> true if the value was found in the XML text,
    false if the value was provided by DTD defaulting.
<br/><b>Exception : </b> ESAXIllegalArgumentException When the
            supplied names do not identify an attribute.
<br/>
<p>
<a href="#top">Top</a>
</p>
<hr width="100%"/>
<a name="#isSpecified">
<p>
<b>function</b> isSpecified( qName : PSAXChar;  qNameLength : Integer) : Boolean; </p>
</a> Returns true unless the attribute value was provided
 by DTD defaulting.

<br/><b>Parameter : </b> qName The XML 1.0 qualified name.
<br/><b>Parameter : </b> qNameLength The length of the qName buffer
   The value may be -1 which indicates that the buffer is
   null-terminated. If the value is 0 then the buffer may be nil.
<br/><b>Result : </b> true if the value was found in the XML text,
    false if the value was provided by DTD defaulting.
<br/><b>Exception : </b> ESAXIllegalArgumentException When the
            supplied name does not identify an attribute.
<br/>
<p>
<a href="#top">Top</a>
</p>
</body>
</html>